package com.yhd.entity.query;

import com.yhd.entity.dto.UserDto;
import com.yhd.model.PageInfo;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import tk.mybatis.mapper.annotation.KeySql;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import java.io.Serializable;
import java.util.Date;

/**
 * 浏览信息记录
 */
@Data
public class BrowseRecordVO extends PageInfo implements Serializable {
    /**
     * 主键
     */
    @Id
    @Column(name = "ID")
    @KeySql(useGeneratedKeys = true)
    @ApiModelProperty(value = "id")
    @GeneratedValue(strategy = GenerationType.IDENTITY, generator = "jdbc")
    private Integer id;

    /**
     * 课程id
     */
    @ApiModelProperty(value = "课程id")
    @Column(name = "courseId")
    private Integer courseId;

    /**
     * 类型 activity:活动，course:课程
     */
    @Column(name = "type")
    @ApiModelProperty(value = "类型 activity:活动，course:课程")
    private String type;
}
